package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfoVo trackInfoVo);




    void removeTrackInfo(Integer trackId);


    Page<TrackListVo> findUserTrackPage(TrackInfoQuery trackInfoQuery, Page<TrackListVo> pageInfo);


    void updateTrackInfo(TrackInfoVo trackInfoVo, Long trackId);

    List<AlbumTrackListVo> findAlbumTrackPage(Page<AlbumTrackListVo> trackInfoIPage, Long albumId);

    Object getTrackStatVo(Long trackId);

    /**
     * 查询用户购买声音列表
     * @param trackId
     * @return
     */
    Object findUserTrackPaidList(Long trackId);
}
